<?php
/**
 * Author Yulin
 * Func   选择彩种
 */
defined('IN_YuLin') || exit('NO PERMIT!');
include_once (ROOT_PATH.'module/wap/public/public_load.inc.php');
include_once (ROOT_PATH.'module/lottery/lottery_play_conf.inc.php');
$page = '';
$tab  = Table('lottery');

UserLogin();
// 获取彩种的具体信息，与展示的页面
$lotteryId    = NoBadStr($_GET['id']);
$lotteryInfo  = '';
foreach ($lottList as $k => $v){
    if ($v['id'] == $lotteryId){
        $v['mj_title'] = str_replace('快3', '', $v['title']);
        $lotteryInfo = $v;
        break;
    }
}

// 同种类彩种数据准备
$sameLotterys = $lottCateKey[$lotteryInfo['cate_id']];
foreach ($sameLotterys as $sk => $sv){
    unset($sv['content']);
    $sv['mj_title'] = str_replace('快3', '', $sv['title']);
}


// 判断是哪个彩种，准备展示页面
switch ($lotteryInfo['ptid']){
    case 'k3':
        $page     = 'lottery/betting_k3';
        break;
    case 'syxw':
        $page     = 'lottery/betting_syx5';
        break;
    case 'ssc':
        $page     = 'lottery/betting_ssc';
        break;
}
$tpl->display($page);



